package cn.cangli.mapper;

import cn.cangli.pojo.Student;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface StudentMapper {
//    @Delete("delete from student where id=#{id}")
    @Update("update student set clazz_id=null where clazz_id=#{clazzId}")
    void updateByClazzId(Integer clazzId);
}
